﻿<UserControl x:Class="Photon.Windows.Input.Assets.MissingMethodBindingErrorsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:local="clr-namespace:Photon.Windows.Input.Assets" 
    xmlns:Photon="http://photon.codeplex.com/schema" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" >
    <UserControl.Resources>
        <local:MissingMethodBindingErrorsViewModel x:Key="Model" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource Model}}">
        <Button Content="MethodNotFoundOnContext" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Click">
                    <Photon:InvokeMethod MethodName="MissingDataContextMethod" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Button>
        <Button Content="MethodNotFoundOnInvokeTarget" x:Name="MissingInvokeTarget" Photon:Invoke.Target="{Binding}" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Click">
                    <Photon:InvokeMethod MethodName="MissingInvokeTargetMethod" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Button>
    </Grid>
</UserControl>
